<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>{:C('PRO_TITLE')} </title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta content="{:C('PRO_TITLE')}" name="description" />

        <!-- App favicon -->
        <link rel="shortcut icon" href="__PUBLIC__/assets/images/favicon.ico">

        <!-- App css -->
        <link href="__PUBLIC__/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/assets/css/icons.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/assets/css/metismenu.min.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/assets/css/style.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/assets/plugins/toast/jquery.toast.min.css" rel="stylesheet" type="text/css" />

    </head>

    <body class="account-body">
        <iframe name="ajaxifr" style="display:none;"></iframe>
        <!-- Log In page -->
        <div class="row vh-100">
            <div class="col-lg-3  pr-0">
                <div class="card mb-0 shadow-none">
                    <div class="card-body">
                        
                        <div class="px-3">
                            <div class="media">
                                <!-- <a href="index.html" class="logo logo-admin"><img src="assets/images/logo-sm.png" height="55" alt="logo" class="my-3"></a> -->
                                <div class="media-body ml-3 align-self-center">                                                                                                                       
                                    <h4 class="mt-0 mb-1">登录</h4>
                                    <p class="text-muted mb-0">登录到 LYNKROS.</p>
                                </div>
                            </div>                            
                            
                            <form class="form-horizontal my-4" action="__ACTION__" method="post" target="ajaxifr">
    
                                <div class="form-group">
                                    <label for="username">用户名</label>
                                    <div class="input-group mb-3">
                                        <div class="input-group-prepend">
                                            <span class="input-group-text" id="basic-addon1"><i class="mdi mdi-account-outline font-16"></i></span>
                                        </div>
                                        <input type="text" class="form-control" id="username" name="data[username]"  placeholder="用户名">
                                    </div>                                    
                                </div>
    
                                <div class="form-group">
                                    <label for="userpassword">密码</label>
                                    <div class="input-group mb-3">
                                        <div class="input-group-prepend">
                                            <span class="input-group-text" id="basic-addon2"><i class="mdi mdi-key font-16"></i></span>
                                        </div>
                                        <input type="password" class="form-control" id="userpassword"  name="data[password]" placeholder="密码">
                                    </div>                                
                                </div>
    
                                <div class="form-group row mt-4">
                                    <div class="col-sm-6">
                                        <div class="custom-control custom-checkbox">
                                            <input type="checkbox" class="custom-control-input" id="remember" name="data[remember]" value="1">
                                            <label class="custom-control-label" for="remember">记住我</label>
                                        </div>
                                    </div>
                                    <div class="col-sm-6 text-right">
                                        <a href="{:U('forget')}" class="text-muted font-13"><i class="mdi mdi-lock"></i> 忘记密码?</a>                                    
                                    </div>
                                </div>
    
                                <div class="form-group mb-0 row">
                                    <div class="col-12 mt-2">
                                        <button  value="登录" name="submit" class="btn btn-primary btn-block waves-effect waves-light" type="submit">登录 <i class="fas fa-sign-in-alt ml-1"></i></button>
                                    </div>
                                </div>                            
                            </form>
                        </div>
                      
                        <div class="m-3 text-center bg-light p-3 text-primary">
                            <h5 class="">没有账号 ? </h5>
                            <p class="font-13">现在注册</p>
                            <a href="{:U('register')}" class="btn btn-primary btn-round waves-effect waves-light">免费注册</a>                
                        </div>                        
                    </div>
                </div>
            </div>
            <div class="col-lg-9 p-0 d-flex justify-content-center">
                <div class="accountbg d-flex align-items-center"> 
                    <div class="account-title text-white text-center">
                        <img src="assets/images/logo-sm.png" alt="" class="thumb-sm">
                        <h4 class="mt-3">欢迎使用</h4>
                        <div class="border w-25 mx-auto border-primary"></div>
                        <h1 class="">{:C('PRO_TITLE')}</h1>
                        <p class="font-14 mt-3">没有账号 ? <a href="{:U('register')}" class="text-primary">注册</a></p>
                       
                    </div>
                </div>
            </div>
        </div>
        <!-- End Log In page -->


        <!-- jQuery  -->
        <script src="__PUBLIC__/assets/js/jquery.min.js"></script>
        <script src="__PUBLIC__/assets/js/bootstrap.bundle.min.js"></script>
        <script src="__PUBLIC__/assets/js/metisMenu.min.js"></script>
        <script src="__PUBLIC__/assets/js/waves.min.js"></script>
        <script src="__PUBLIC__/assets/js/jquery.slimscroll.min.js"></script>
        <script src="__PUBLIC__/assets/js/js.cookie.min.js"></script>
        <script src="__PUBLIC__/assets/plugins/toast/jquery.toast.min.js"></script>

        <!-- App js -->
        <script src="__PUBLIC__/assets/js/app.js"></script>
        <script>
        $(function(){

            var flag = Cookies.get('flag');
            if(flag == '1'){
                document.getElementById('remember').checked = true;
                document.getElementById('username').value = Cookies.get('username');
            }

        });
        
        function notify(status, title, content){
            $.toast({
                heading: title,
                text: content,
                showHideTransition: 'slide',
                icon: status,
                position: 'top-right',
            })
        }
        </script>

    </body>
</html>